


class SingleUserInfo {
  int? id;
  String? userId;
  String? loginName;
  String? email;
  String? phone;
  String? gender;
  String? avatar;
  String? sourceProject;
  String? sourceWay;

  SingleUserInfo({this.id, this.userId, this.loginName, this.email, this.phone, this.gender, this.avatar, this.sourceProject, this.sourceWay});

  SingleUserInfo.fromJson(Map<String, dynamic> json) {
    if(json["id"] is int) {
      id = json["id"];
    }
    if(json["userId"] is String) {
      userId = json["userId"];
    }
    if(json["loginName"] is String) {
      loginName = json["loginName"];
    }
    if(json["email"] is String) {
      email = json["email"];
    }
    if(json["phone"] is String) {
      phone = json["phone"];
    }
    if(json["gender"] is String) {
      gender = json["gender"];
    }
    if(json["avatar"] is String) {
      avatar = json["avatar"];
    }
    if(json["sourceProject"] is String) {
      sourceProject = json["sourceProject"];
    }
    if(json["sourceWay"] is String) {
      sourceWay = json["sourceWay"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["userId"] = userId;
    _data["loginName"] = loginName;
    _data["email"] = email;
    _data["phone"] = phone;
    _data["gender"] = gender;
    _data["avatar"] = avatar;
    _data["sourceProject"] = sourceProject;
    _data["sourceWay"] = sourceWay;
    return _data;
  }
}